package tommysmapeditor.editors.bo;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Rectangle;

import tommysmapeditor.editors.bo.HitBoxDescription.HitBoxType;


/**
 * the individual desc we edit in anim and hitbox editor
 * @author lactho
 *
 */
public class FrameDescription {

	//the base image loaded to work on
	public Image base,baseX2,baseX3;
	
	public String sourceFilePath;

	public List<HitBoxDescription> hitBoxes = new ArrayList<HitBoxDescription>();
	
	public List<HitPointDescription> hitPoints = new ArrayList<HitPointDescription>();
	
	
	public long timeCode;
	
	
	/**
	 * initially 0,0, is positioned on edit
	 * @param t
	 * @param guiName 
	 */
	public void addHitbox( HitBoxType t, String guiName ){
		System.out.println("add hit box INSIDE frame desc");
		HitBoxDescription hbd = new HitBoxDescription();
		hbd.type = t;
		hbd.coordinates=new Rectangle(0, 0, 0, 0);
		hbd.name=guiName;
		
		hitBoxes.add(hbd);
	}
}
